#include<stdio.h>
#include<string.h>

int is_legal_filename(char *s)
{
  if(*s == "!"||!strcmp(s,"..")||strchr(s,'/'))
    {
      printf("****************\n");
      return 0;
    }
  return 1;
}

int main(int argc, char *argv[])
{
  is_legal_filename("../abc.txt");
  return 0;
}
